#include "stdafx.h"
#include "Movie.h"


Movie::Movie(void)
{
	_id = 0;
	// sheel el { _id = 0; } da;
}


Movie::~Movie(void)
{
}

int Movie::getID()
{
	return _id;
}

 vector<int> Movie::getIDMember()
{
	return _idMember;	
}

void Movie::setIDMember(int id_)
{
	_id = id_;
	ENSURE0(_id == id_);
}

string Movie::getName()
{
	return _name;
}

void Movie::setName(string name_)
{
	_name = name_;
	ENSURE0(_name == name_);
}

string Movie::getGenre()
{
	return _genre;
	
}

void Movie::setGenre(string genre_)
{
	_genre = genre_;
	ENSURE0(_genre == genre_);
}

string Movie::getReleaseDate()
{
	return _ReleaseDate;
}

void Movie::setReleaseDate(string date_)
{
	_ReleaseDate = date_;
	ENSURE0(_ReleaseDate == date_);
}

string Movie::getCast()
{
	return _cast;
}

void Movie::setCast(std::string cast_)
{
	_cast = cast_;
	ENSURE0(_cast == cast_);
}



string Movie::getLanguage()
{
	return _language;
}

void Movie::setLanguage(string lang_)
{
	_language = lang_;
	ENSURE0(_language == lang_);

}

string Movie::getSynopsis()
{
	return _synopsis;
}

void Movie::setSynopsis(string synopsis_)
{
	_synopsis = synopsis_;
	ENSURE0(_synopsis == synopsis_);
}

string Movie::getDirectors()
{
	return _directors;
}

void Movie::setDirectors(string directors_)
{
	_directors = directors_;
	ENSURE0(_directors == directors_);
}

time_t Movie::getDurations()
{
	return _duration;
}

void Movie::setDuration(time_t duration_)
{
	_duration = duration_;
	ENSURE0(_duration == duration_);
}

vector<DVD> Movie::getPieces()
{
	return _pieces;
}

void Movie::setPiece(DVD dvd_)
{
	_pieces.push_back(dvd_);
	ENSURE0(_pieces.back().getID() == dvd_.getID());

}

int Movie::getAvailablePieces()
{
	return _availablePieces;
}

void Movie::setAvailablePieces(int pieces_)
{
	pieces_ = _availablePieces;
	ENSURE0(pieces_ == _availablePieces);
}
